package modelo;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

@Entity
@NamedQueries( { @NamedQuery(name = "Receptor.findAll", query = "select o from Receptor o") })
@Table(name = "\"receptor\"")
public class Receptor implements Serializable {
    @Column(name = "correo")
    private String correo;
    @Column(name = "curp")
    private String curp;
    @Column(name = "iddomicilio")
    private long iddomicilio;
    @Id
    @Column(name = "idreceptor", nullable = false)
    private long idreceptor;
    @Column(name = "nombre")
    private String nombre;
    @Column(name = "rfce")
    private String rfce;
    @Column(name = "rfcr", nullable = false)
    private String rfcr;
    @Column(name = "tipopersona")
    private String tipopersona;

    public Receptor() {
    }

    public Receptor(String correo, String curp, long iddomicilio, long idreceptor, String nombre, String rfce,
                    String rfcr, String tipopersona) {
        this.correo = correo;
        this.curp = curp;
        this.iddomicilio = iddomicilio;
        this.idreceptor = idreceptor;
        this.nombre = nombre;
        this.rfce = rfce;
        this.rfcr = rfcr;
        this.tipopersona = tipopersona;
    }

    public String getCorreo() {
        return correo;
    }

    public void setCorreo(String correo) {
        this.correo = correo;
    }

    public String getCurp() {
        return curp;
    }

    public void setCurp(String curp) {
        this.curp = curp;
    }

    public long getIddomicilio() {
        return iddomicilio;
    }

    public void setIddomicilio(long iddomicilio) {
        this.iddomicilio = iddomicilio;
    }

    public long getIdreceptor() {
        return idreceptor;
    }

    public void setIdreceptor(long idreceptor) {
        this.idreceptor = idreceptor;
    }

    public String getNombre() {
        return nombre;
    }

    public void setNombre(String nombre) {
        this.nombre = nombre;
    }

    public String getRfce() {
        return rfce;
    }

    public void setRfce(String rfce) {
        this.rfce = rfce;
    }

    public String getRfcr() {
        return rfcr;
    }

    public void setRfcr(String rfcr) {
        this.rfcr = rfcr;
    }

    public String getTipopersona() {
        return tipopersona;
    }

    public void setTipopersona(String tipopersona) {
        this.tipopersona = tipopersona;
    }
}
